Skip to content

查询控制单

根据外部单号查询管控单、解管单。管控单:未解管时支持长期查询,解管后支持1年查询。解管单:支持1年查询。限频:200/分钟

请求参数类型描述
out_request_nostring微众管控/解管单号
queryobject声明请求的查询参数
control_typestring控制单类型
PUNISH | RECOVER 枚举值之一
mchidstring微信支付商户号
headersobject声明请求的头参数
Wechatpay-Serialstring微信支付公钥ID/平台证书序列号
php
$instance->v3->aggracctBc->wbChannel->controlOrders->_out_request_no_->getAsync([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/aggracct-bc/wb-channel/control-orders/{out_request_no}')->getAsync([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/aggracct-bc/wb-channel/control-orders/{out_request_no}']->getAsync([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->aggracctBc->wbChannel->controlOrders->_out_request_no_->get([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/aggracct-bc/wb-channel/control-orders/{out_request_no}')->get([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/aggracct-bc/wb-channel/control-orders/{out_request_no}']->get([
  'out_request_no' => 'out_request_no_example',
  'query' => [
    'control_type' => 'PUNISH',
    'mchid'        => '1900016681',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
control_scenestring控制场景
PUNISH | RECOVER 枚举值之一
punish_orderobject管控单
wxpay_punish_nostring微信管控单号
out_request_nostring微众管控单号
mchidstring目标下管商户号
punish_sceneinteger管控场景
punish_rule_versioninteger管控场景规则版本号
punish_reasonstring管控原因
punish_start_timestring管控开始时间
punish_end_timestring管控结束时间
punish_accept_timestring管控受理时间
punish_finish_timestring管控执行完成时间
punish_statestring管控状态
EXECUTING | SUCCESS | FAILED 枚举值之一
effect_statestring生效状态
ACTIVE | RECOVERED 枚举值之一
control_actionstring[]管控方案
DISABLE_RECEIVE | DISABLE_WITHDRAWAL | DISABLE_PAY | DISABLE_REFUND | DISABLE_CLOSE_MERCHANT 枚举值之一
error_messagestring执行失败错误信息
error_codestring执行失败错误码
recover_orderobject解管单
wxpay_recover_nostring微信支付解管单号
out_request_nostring微众解管单号
related_wxpay_punish_nostring关联微信支付管控单号
mchidstring目标解管商户号
punish_scenestring管控场景
punish_rule_versionstring管控场景规则版本号
recover_accept_timestring解管受理时间
recover_finish_timestring解管执行完成时间
recover_statestring解管状态
EXECUTING | SUCCESS | FAILED 枚举值之一
recover_reasonstring解管原因描述
error_messagestring执行失败错误信息
error_codestring执行失败错误码

参阅 官方文档

Published on the GitHub by TheNorthMemory